<template>
  <tooltip effect="dark" :content="content" placement="bottom" trigger="click">
    <div>
      <el-button bg text>{{ type || 'object' }}</el-button>
      <el-button text plain style="padding: 5px; margin-left: 5px">
        <el-icon><Warning /></el-icon>
      </el-button>
    </div>
  </tooltip>
</template>
<script setup lang="ts">
import { Warning } from '@element-plus/icons-vue';
import Tooltip from './Tooltip.vue';
defineProps<{
  content: string;
  type?: string;
}>();
</script>
